{extend name="main/index" /}
{block name="main"}
<div class="content-page">
    <h1>
        用户管理
        <small>
            <i class="icon-double-angle-right"></i>
            分配权限
        </small>
    </h1>
    <div class="row">
        <div class="col-md-12">
            <p>
                给 <b>{$users.username}</b> 分配权限
            </p>
            <form action="{:url('admin/User/savenode')}" method='post'>
                <p style="width:600px">
                    {volist name="list" id="vo"}
                        <input type="checkbox" name="role[]"  value="{$vo.id}" {if condition="in_array($vo['id'],$myrole)"}checked{/if}>{$vo.name}
                        &nbsp;
                        &nbsp;
                        &nbsp;
                    {/volist}
                </p>
                <input type="hidden" name="uid" value="{$users.id}">
                <input type="submit" value="保存" class="btn btn-primary">

            </form>

        </div>
    </div>
</div>


{/block}